'use strict';

module.exports = app => {
    const { STRING, INTEGER, DATE } = app.Sequelize;

    const Project = app.model.define('team_project', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        name: STRING(200),
        desc: STRING,
        create_user_id: STRING(32),
        head_user_id: STRING(32),
        status: INTEGER,
        sn: INTEGER,

        create_time: DATE,
        update_time: DATE,

    }, {
        paranoid: false
    });

    return Project;
};